<?php

namespace models;

use Medoo\Medoo;

class BaseDao extends Medoo
{
    function __construct()
    {
        // 连接数据库。
        $options = [
            'database_type' => 'mysql',
            'database_name' => DBNAME,
            'server'        => HOST,
            'port'          => PORT,
            'username'      => USER,
            'password'      => PASS,
            'prefix'        => TABPREFIX
        ];

        parent::__construct($options);
    }
}